﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace OPM.Models
{
    public class UserRole
    {
        [Key, ForeignKey("OpmRole"), Column(Order = 1)]
        public Guid RoleId { get; set; }

        [Key, ForeignKey("OpmUser"), Column(Order = 2)]
        public Guid UserId { get; set; }

        public OpmRole OpmRole { get; set; }
        public OpmUser OpmUser { get; set; }

    }
}